/**
 * Created by hujj on 2017/6/23.
 */
/**
 * Created by hujj on 2017/1/16.
 */
const routes = [
  {
    name: 'home',
    path: '/',
    meta: {
      title: '首页'
    },
    component: require('@/view/home.vue')
  },
  {
    name: 'product',
    path: '/product',
    meta: {
      title: '产品'
    },
    component: require('@/view/product.vue'),
    children: [
      {
        path: 'index',
        meta: {
          title: 'KR SHOP'
        },
        component: require('@/components/product/index.vue')
      },
      {
        path: 'site',
        meta: {
          title: 'KR SITES'
        },
        component: require('@/components/product/site.vue')
      },
      {
        path: 'service',
        meta: {
          title: '移动互联网业务'
        },
        component: require('@/components/product/service.vue')
      },
      {
        path: 'software',
        meta: {
          title: '软件定制服务'
        },
        component: require('@/components/product/software.vue')
      },
      {
        path: 'evaluation',
        meta: {
          title: '软件评测服务'
        },
        component: require('@/components/product/evaluation.vue')
      }
    ]
  },
  {
    name: 'news',
    path: '/news',
    meta: {
      title: '新闻'
    },
    component: require('@/view/news.vue')
  },
  {
    name: 'page',
    path: '/news/:page',
    meta: {
      title: '新闻'
    },
    component: require('@/view/news.vue')
  },
  {
    name: 'article',
    path: '/article/:id',
    meta: {
      title: '新闻详情'
    },
    component: require('@/components/news/article.vue')
  },
  {
    name: 'about',
    path: '/about',
    meta: {
      title: '关于'
    },
    component: require('@/view/about.vue'),
    children: [
      {
        path: 'index',
        meta: {
          title: '公司简介'
        },
        component: require('@/components/about/index.vue')
      },
      {
        path: 'business',
        meta: {
          title: '业务覆盖'
        },
        component: require('@/components/about/business.vue')
      },
      {
        path: 'honor',
        meta: {
          title: '荣誉资质'
        },
        component: require('@/components/about/honor.vue')
      },
      {
        path: 'culture',
        meta: {
          title: '企业文化'
        },
        component: require('@/components/about/culture.vue')
      },
      {
        path: 'partner',
        meta: {
          title: '合作伙伴'
        },
        component: require('@/components/about/partner.vue')
      },
      {
        path: 'contact',
        meta: {
          title: '联系我们'
        },
        component: require('@/components/about/contact.vue')
      },
      {
        path: 'hr',
        meta: {
          title: '人力资源'
        },
        component: require('@/components/about/hr.vue')
      }
    ]
  }
]

export default routes
